package com.sskj.postar.service.impl;

import com.sskj.postar.mapper.TokenMapper;
import com.sskj.postar.model.Token;
import com.sskj.postar.service.TokenService;
import com.sskj.postar.core.universal.AbstractService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @Description: TokenService接口实现类
*
* @date 2018/11/07 10:05
*/
@Service
public class TokenServiceImpl extends AbstractService<Token> implements TokenService {

    @Resource
    private TokenMapper tokenMapper;

    @Override
    public void delete(int id, String type) {
        tokenMapper.deleteBy(id,type);
    }
}

